package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fc.v2.model.custom.MechanismCounts;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class Mechanism implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "主键id")
	private Integer id;
	
	@ApiModelProperty(value = "名称")
	private String name;
	
	@ApiModelProperty(value = "logo")
	private String logo;
	
	@ApiModelProperty(value = "简介")
	private String introduction;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "创建时间")
	private Date creationTime;
	
	@ApiModelProperty(value = "官网")
	private String officialWebsite;
	
	@ApiModelProperty(value = "创始人")
	private String founder;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "入驻时间")
	private Date settlementTime;
	
	@ApiModelProperty(value = "联系人")
	private String contactPerson;
	
	@ApiModelProperty(value = "联系电话")
	private String contactPhone;
	
	@ApiModelProperty(value = "类型")
	private String type;
	
	@ApiModelProperty(value = "课程类型")
	private String courseType;
	
	@ApiModelProperty(value = "状态 0 不可用  1 可用")
	private Integer status;

	private long operatingCount;

	private MechanismCounts mechanismCounts;
	
	@JsonProperty("id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id =  id;
	}
	@JsonProperty("name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name =  name;
	}
	@JsonProperty("logo")
	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo =  logo;
	}
	@JsonProperty("introduction")
	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction =  introduction;
	}
	@JsonProperty("creationTime")
	public Date getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(Date creationTime) {
		this.creationTime =  creationTime;
	}
	@JsonProperty("officialWebsite")
	public String getOfficialWebsite() {
		return officialWebsite;
	}

	public void setOfficialWebsite(String officialWebsite) {
		this.officialWebsite =  officialWebsite;
	}
	@JsonProperty("founder")
	public String getFounder() {
		return founder;
	}

	public void setFounder(String founder) {
		this.founder =  founder;
	}
	@JsonProperty("settlementTime")
	public Date getSettlementTime() {
		return settlementTime;
	}

	public void setSettlementTime(Date settlementTime) {
		this.settlementTime =  settlementTime;
	}
	@JsonProperty("contactPerson")
	public String getContactPerson() {
		return contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson =  contactPerson;
	}
	@JsonProperty("contactPhone")
	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone =  contactPhone;
	}
	@JsonProperty("type")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type =  type;
	}
	@JsonProperty("courseType")
	public String getCourseType() {
		return courseType;
	}

	public void setCourseType(String courseType) {
		this.courseType =  courseType;
	}
	@JsonProperty("status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status =  status;
	}

	public long getOperatingCount() {
		return operatingCount;
	}

	public void setOperatingCount(long operatingCount) {
		this.operatingCount = operatingCount;
	}

	public MechanismCounts getMechanismCounts() {
		return mechanismCounts;
	}

	public void setMechanismCounts(MechanismCounts mechanismCounts) {
		this.mechanismCounts = mechanismCounts;
	}

	public Mechanism(Integer id, String name, String logo, String introduction, Date creationTime, String officialWebsite, String founder, Date settlementTime, String contactPerson, String contactPhone, String type, String courseType, Integer status) {
				
		this.id = id;
				
		this.name = name;
				
		this.logo = logo;
				
		this.introduction = introduction;
				
		this.creationTime = creationTime;
				
		this.officialWebsite = officialWebsite;
				
		this.founder = founder;
				
		this.settlementTime = settlementTime;
				
		this.contactPerson = contactPerson;
				
		this.contactPhone = contactPhone;
				
		this.type = type;
				
		this.courseType = courseType;
				
		this.status = status;
				
	}

	public Mechanism() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}